import {
  request,
} from "@rabbit.do/rabbit";

// B端分类-树数据
export const productTreeData = (data) => request({
  url: "/swan/product/b/catalog/tree",
  data,
});
// 产品-药品 查询分类
export const addDrugList = (data) => request({
  url: "/swan/product/medicine/catalog/find",
  data,
});
// 产品-物料 查询分类
export const addMaterialList = (data) => request({
  url: "/swan/product/thing/catalog/find",
  data,
});
// 订单-新增
export const addOrderData = (data) => request({
  url: "/swan/order/order/create",
  data,
});
// 订单-查询
export const selectOrder = (data) => request({
  url: "/swan/order/thing/medicine/get",
  data,
});
// 退单-退单
export const chargeBack = (data) => request({
  url: "/swan/order/cancel/create",
  data,
});
// 退单-查询
export const selectChargeBack = (data) => request({
  url: "/swan/order/cancel/get",
  data,
});

